/*
 * Group 3, User Interface Programming II (vt11)
 * Pooya | Flora | Monica | Can
 */
package vical.view;

import javax.swing.AbstractAction;
import vical.action.AddEntryAction;
import vical.action.DeleteEntryAction;
import vical.model.Entry;

/**
 * The entry Dialog to add an Entry
 * @author Can
 */
public class AddEntryDialog extends EntryDialog {

    public AddEntryDialog() {
        super(null);
    }

    public AddEntryDialog(Entry entry) {
        super(entry);
    }

    @Override
    protected AbstractAction getDoneButtonAction() {
        return new AddEntryAction(this);
    }

    @Override
    protected AbstractAction getRemoveButtonAction() {
        return new DeleteEntryAction(this);
    }
}
